package com.zqxq.lottery.mapper.sys;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zqxq.lottery.entity.po.sys.SysCouponPO;
import com.zqxq.lottery.entity.po.user.UserActivityPO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 说    明：
 * 创 建 人：	一刀·胡
 * 创建时间：	2018/5/7 10:12
 * 修 改 人：
 * 修改日期：
 **/
@Component(value = "sysCouponMapper")
public interface SysCouponMapper extends BaseMapper<SysCouponPO> {
    List<SysCouponPO> selectCoupon(SysCouponPO sysCouponPO);

    @Select("select * from sys_coupon where activity_id=#{activityId}")
    SysCouponPO selectByActivityId(@Param("activityId") Long activityId);

    @Select("select * from sys_coupon where id=#{couponId}")
    SysCouponPO selectById(@Param("id") Long couponId);

    void updateUserCoupon();

}
